package com.my.security.service.impl;

import com.my.security.dao.RoleMapper;
import com.my.security.model.Role;
import com.my.security.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lbb
 * @fileName RoleServiceImpl
 * @description
 * @date 2020/5/12 16:58
 */
@Service
public class RoleServiceImpl implements RoleService {
    @Autowired
    private RoleMapper roleMapper;
    @Override
    public List<Role> getUserRole(String username) {
        return roleMapper.getUserRole(username);
    }
}
